package com.ueffort.social;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import com.ueffort.social.action.AuthAction;
import com.ueffort.social.action.RealAction;
import com.ueffort.social.action.ShareAction;
import com.ueffort.social.action.LeaderboardAction;
import com.ueffort.social.action.AchievementAction;
import com.ueffort.social.action.SocialAction;
import com.ueffort.social.inter.ShareObject;

import java.util.Dictionary;
import java.util.Map;

public interface SocialProvider {
    boolean isInstall();

    boolean isShared();

    boolean isLeaderboard();

    boolean isAchievement();

    boolean isReal();

    boolean onActivityResult(int requestCode, int resultCode, Intent data);

    void onCreate(Activity activity);

    void onDestroy(Activity activity);

    void Init(String appId, Activity activity, SocialAction action);

    void Authorize(AuthAction action);

    void AuthorizeStatus(AuthAction action);

    void UpdateData(Map<String, String> info);

    void Real(RealAction action);

    void Logout();

    void ShareWithObject(ShareObject share, ShareAction action);

    void SubmitLeaderboard(String key, int value, LeaderboardAction action);

    void AddAchievement(String key, int value, AchievementAction action);
}